<?php session_start();

include 'alexa.php';

//=====================================================language=============================================
if($_SESSION['langname']=="")
{
	$language_url="languages/"."english".'/header_add_language.php';
}
else
{
	$language_url="languages/".$_SESSION['langname'].'/header_add_language.php';
}

include_once("$language_url");
//======================================================End============================================
$url=$_SERVER['REQUEST_URI'];
$url1=explode("/","$url");
$url1['2'];

if($url1['2']=="index.php")
{
$_SESSION['id']="1";$class1="navLink2";$class2="navLink";$class3="navLink";$class4="navLink";$class5="navLink";
$class6="navLink";
}
elseif($url1['2']=="buy_spaceNew.php")
{
$_SESSION['id']="2";$class1="navLink";$class2="navLink2";$class3="navLink";$class4="navLink";$class5="navLink";
$class6="navLink";
}
elseif($url1['2']=="ads.php")
{
$_SESSION['id']="3";$class1="navLink";$class2="navLink";$class3="navLink2";$class4="navLink";$class5="navLink";
$class6="navLink";
}
elseif($url1['2']=="pub_statistics.php")
{
$_SESSION['id']="4";$class1="navLink";$class2="navLink";$class3="navLink";$class4="navLink2";$class5="navLink";
$class6="navLink";
}
elseif($url1['2']=="my_account.php")
{
$_SESSION['id']="5";$class1="navLink";$class2="navLink";$class3="navLink";$class4="navLink";$class5="navLink2";
$class6="navLink";
}
elseif($url1['2']=="help.php")
{
$_SESSION['id']="6";$class1="navLink";$class2="navLink";$class3="navLink";$class4="navLink";$class5="navLink";
$class6="navLink2";
}
else
{
	if($_SESSION['id']=="2")
	{
		$class1="navLink";$class2="navLink2";$class3="navLink";$class4="navLink";$class5="navLink";
$class6="navLink";
	}
	elseif($_SESSION['id']=="3")
	{
		$class1="navLink";$class2="navLink";$class3="navLink2";$class4="navLink";$class5="navLink";
$class6="navLink";
	}
	elseif($_SESSION['id']=="4")
	{
		$class1="navLink";$class2="navLink";$class3="navLink";$class4="navLink2";$class5="navLink";
$class6="navLink";
	}
	else
	{
		$class1="navLink";$class2="navLink";$class3="navLink";$class4="navLink";$class5="navLink";
$class6="navLink";
	}


}
//echo $_SESSION['id'];
?>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/listing.css" type="text/css" />
<table align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/adwebmob_01.jpg" alt="" /></td>
    <td align="left" valign="top"><img src="images/spacer.gif" width="1" height="1" alt="" /></td>

    <!-- nav part -->
    <td align="left" valign="top">
    	<table width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td align="left" valign="top">
            	<table width="100%" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="left" valign="top"><img src="images/spacer.gif" alt="" width="400" height="39" /></td>
                    <td class="top_nav"><?php
if($_SESSION['siteuserId']!=''){?><?php echo $_SESSION['username'];?> | <a href="logout.php" class="top_navLink"><?php echo LOGOUT; ?></a><?php } else { ?><a href="registration.php" class="top_navLink"><?php echo REGISTER; ?></a> | <a href="index.php" class="top_navLink"><?php echo LOGIN;?></a> <?php } ?></td>
                  </tr>
                </table>
            </td>
          </tr>
          <tr>
            <td align="left" valign="top"><img src="images/spacer.gif" alt="" height="36" /></td>
          </tr>
          <tr><!-- butt -->
            <td align="right" valign="top" class="nav">
            	<table  cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="left">
                    	<table cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left"><img src="images/nav_butt_left.gif" alt="" /></td>
                            <td align="left" valign="top" class="nav_buttMidd"><a href="index.php" class="<?php echo $class1;?>"><?php echo HOME; ?></a></td>
                            <td align="left"><img src="images/nav_butt_right.gif" alt="" /></td>
                          </tr>
                        </table>
                    </td>
                    
                    <td align="left">
                    	<table cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left"><img src="images/nav_butt_left.gif" alt="" /></td>
                            <td align="left" valign="top" class="nav_buttMidd" nowrap="true"><a href="buy_spaceNew.php" class="<?php echo $class2;?>"><?php echo BUYADS;?></a></td>
                            <td align="left"><img src="images/nav_butt_right.gif" alt="" /></td>
                          </tr>
                        </table>
                    </td>
                    
                    <td align="left">
                    	<table cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left"><img src="images/nav_butt_left.gif" alt="" /></td>
                            <td align="left" valign="top" class="nav_buttMidd" nowrap="true"><a href="<?php if($_SESSION['siteuserId']!='') { echo " ads.php ";} else { echo "login.php";}?>" class="<?php echo $class3;?>"><?php echo SELLADS;?></a></td>
                            <td align="left"><img src="images/nav_butt_right.gif" alt="" /></td>
                          </tr>
                        </table>
                    </td>
                    
<!--                    <td align="left">
                    	<table cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left"><img src="images/nav_butt_left.gif" alt="" /></td>
                            <td align="left" valign="top" class="nav_buttMidd" nowrap="true"><a href="brokers.php" class="<?php echo $class4;?>"><?php echo BROKERS; ?></a></td>
                            <td align="left"><img src="images/nav_butt_right.gif" alt="" /></td>
                          </tr>
                        </table>
                    </td>
                    -->
                    <td align="left">
                    	<table cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left"><img src="images/nav_butt_left.gif" alt="" /></td>
                            <td align="left" valign="top" class="nav_buttMidd" nowrap="true"><a href="pub_statistics.php" class="<?php echo $class5;?>">Statistics</a></td>
                            <td align="left"><img src="images/nav_butt_right.gif" alt="" /></td>
                          </tr>
                        </table>
                    </td>
                    
                    <td align="left">
                    	<table cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left"><img src="images/nav_butt_left.gif" alt="" /></td>
                            <td align="left" valign="top" class="nav_buttMidd"><a href="faq.php" class="<?php echo $class6;?>"><?php echo HELP; ?></a></td>
                            <td align="left"><img src="images/nav_butt_right.gif" alt="" /></td>
                          </tr>
                        </table>
                    </td>
                  </tr>
                </table>
            </td><!-- /butt -->
          </tr>
        </table>

    </td>
    <!-- /nav part -->    
  </tr>
  
  <tr>
  <td colspan="3">
  
  <!-- sky underline -->
<table width="820" class="sky_underline"  cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/spacer.gif" alt="" /></td>
  </tr>
</table>
<!-- /sky underline -->
  
  </td>
  </tr>
  
  <tr>
  <td colspan="3">
  
  <!-- sky underline -->

<table width="827" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/spacer.gif" alt="" /></td>
  </tr>
<?php
if($_SESSION['id']=="2")
{
?>
<tr>
    <td class="submenu">
		<ul class="submenu_link">
			<li><a href="#" class="submenu_linkList"><?php echo BUYDIRECTADS; ?></a></li>
			<li>|</li>
			<li><a href="#" class="submenu_linkList"><?php echo BUYNETWORKADS;?></a></li>
			<li>|</li>
			<li><a href="#" class="submenu_linkList"><?php echo CAMPAIN;?></a></li>
			<li>|</li>
			<li><a href="#" class="submenu_linkList"><?php echo MANAGEADS;?></a></li>
			<li>|</li>
			<li><a href="create_landing_page.php" class="submenu_linkList">My landing page</a></li>
			
		</ul>

	</td>
  </tr>
<?php
}

elseif($_SESSION['id']=="3")
{
?>
<tr>
    <td class="submenu">
		<ul class="submenu_link">
			<li><a href="sell_website_add.php" class="submenu_linkList"><?php echo ADDWEBSITE;?></a></li>
			<li>|</li>
			<li><a href="customize_ad.php?sid=<?php echo $_SESSION['siteuserId'];?>" class="submenu_linkList"><?php echo CREATEAD;?></a></li>
			<li>|</li>
			<li><a href="all_websites.php" class="submenu_linkList"><?php echo EDITSITE;?></a></li>
			<li>|</li>
			<li><a href="all_adspaces.php" class="submenu_linkList"><?php echo EDITADSPACE;?></a></li>
			<li>|</li>
			<li><a href="publisher_statistics.php" class="submenu_linkList"><?php echo SPACESTATICSIS;?></a></li>
			<li>|</li>
			<li><a href="accept_order.php" class="submenu_linkList"><?php echo APPROVEREVIEWAD;?></a></li>
			<!--<li>|</li>
			<li><a href="create_landing_page.php" class="submenu_linkList">My landing page</a></li>-->
			<li>|</li>
			<li><a href="#" class="submenu_linkList"><?php echo PAYMENTHISTORY;?></a></li>
			<li>|</li>
			<li><a href="#" class="submenu_linkList"><?php echo SELLINGTIPS;?></a></li>
		</ul>

	</td>
  </tr>
<?php
}

elseif($_SESSION['id']=="4")
{
?>
<tr>
    <td class="submenu">
		<ul class="submenu_link">
			<li><a href="sell_website_add.php" class="submenu_linkList"><?php echo BROKERSTATISTICS;?></a></li>
			<li>|</li>
			<li><a href="#" class="submenu_linkList"><?php echo BROKEREARNING;?></a></li>
			<li>|</li>
			<li><a href="#" class="submenu_linkList"><?php echo MYAFFILIATES;?></a></li>
			<li>|</li>
			<li><a href="#" class="submenu_linkList"><?php echo BROKERTIPS;?></a></li>
			
		</ul>

	</td>
  </tr>
<?php
}
?>
</table>

<!-- /sky underline -->
  
  </td>
  </tr>
  
  <tr>
    <td colspan="3">
		<!-- advertise area -->
<table width="827"  class="advertise_area" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left" valign="top" class="advertise_txt">
    <p><?php echo THEWORD;?></p>
    <p class="advertise_txt2"><?php echo ADVNETWORK;?></p>
    </td>
  </tr>
</table>
<!-- /advertise area -->

	</td>
  </tr>
  
  <tr>
    <td colspan="3">
		<table width="827" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/spacer.gif" alt="" /></td>
  </tr>
</table>
	</td>
  </tr>
  
  
</table>